package com.mark.springsecurity.repository;

import com.mark.springsecurity.domain.SysUser;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;


public interface SysUserRepository extends JpaRepository<SysUser, Long> {

    Optional<SysUser> findByUsernameAndEnabled(String username,Boolean enabled);

    Optional<SysUser> findByIdAndEnabled(Long id,Boolean enabled);


}
